package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.vo.TimeAndCountVo;

import java.util.List;

public interface MemberReservationService extends IService<Reservation> {
    int getCancelledReservationCount(Long userId);

    List<TimeAndCountVo> getCountByTime(Long time);

    void addReservation(Reservation reservation);

    TableDataInfo<Reservation> page(Integer pageSize, Integer pageNum);

    void cancelReservation(Long id);

    void updateReservationStatus();
}
